<%--
  Created by IntelliJ IDEA.
  User: 赵zh
  Date: 2022/5/15
  Time: 17:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<form action="login" method="get">
    <table>
        <tr>
            <td>用户名</td>
            <td><input type="text" name="uname"></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="password" name="pwd"></td>
        </tr>
        <tr>
            <td>验证码</td>
            <td><input type="text" name="code"><img src="vc"><a href="#">看不清</a> </td>
        </tr>
        <tr>
            <td>登录</td>
            <td><a href="deng" id="">登录</a></td>
        </tr>
    </table>
</form>
<script>
    let id = document.querySelector("a");
    let img = document.querySelector("img");
    id.onclick=function () {
        img.src="vc?n="+Math.random();
    }
    $("#")
</script>
</body>
</html>
